package com.lovo.project.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.project.bean.BuyInBean;
import com.lovo.project.mapper.BuyInMapper;
import com.lovo.project.service.BuyInService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BuyInServiceImpl extends ServiceImpl<BuyInMapper, BuyInBean> implements BuyInService {
    @Autowired
    BuyInMapper buyInMapper;

    @Override
    public Page<BuyInBean> queryBuyInList(Page<BuyInBean> page, QueryWrapper<BuyInBean> queryWrapper) {
        Page<BuyInBean> page1=buyInMapper.selectPage(page,queryWrapper);
        return page1;
    }

    @Override
    public BuyInBean queryBuyIn(Integer id) {
        BuyInBean buyInBean=buyInMapper.selectById(id);
        return buyInBean;
    }
}
